import java.util.Scanner;
/**
 *  This program ask the user for weight and waist measurement and calculates percentage fat
  * @author Amrita Mukherjee
 * @version 02/10/2012
 */
public class A7_3
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        System.out.println("This program ask the user for weight and waist measurement and calculates percentage fat. ");
        System.out.print("What is yout current body weight(Lbs)? ");
        double weight = keyboard.nextInt();
        System.out.print("What is yout current waisemeasurement(inches)? ");
        double waist = keyboard.nextInt();
        double percentagefat = (((weight - ((weight * 1.082 + 94.42) - (waist * 4.15 ))) / weight) * 100.0);
        System.out.println("percentage fat is " + percentagefat); 
    }
   
}
/*
 * My test session
 * This program ask the user for weight and waist measurement and calculates percentage fat. 
What is yout current body weight(Lbs)? 120
What is yout current waisemeasurement(inches)? 24
percentage fat is -3.8833333333333186

 */